home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
dev
/
misc
/
fcxref.lha
/
FCXRef
/
Src
/
cxref.h
< prev
next >
Wrap
C/C++ Source or Header
|
1999-02-09
|
2KB
|
105 lines
/*
* Source generated with ARexxBox 1.12 (May 18 1993)
* which is Copyright (c) 1992,1993 Michael Balzer
*/
#ifndef _cxref_H
#define _cxref_H
#define RXIF_INIT 1
#define RXIF_ACTION 2
#define RXIF_FREE 3
#define ARB_CF_ENABLED (1L << 0)
#define ARB_HF_CMDSHELL (1L << 0)
#define ARB_HF_USRMSGPORT (1L << 1)
struct RexxHost
{
struct MsgPort *port;
char portname[ 80 ];
long replies;
struct RDArgs *rdargs;
long flags;
APTR userdata;
};
struct rxs_command
{
char *command, *args, *results;
long resindex;
void (*function)( struct RexxHost *, void **, long, struct RexxMsg * );
long flags;
};
struct arb_p_link
{
char *str;
int dst;
};
struct arb_p_state
{
int cmd;
struct arb_p_link *pa;
};
#ifndef NO_GLOBALS
extern char RexxPortBaseName[80];
extern struct rxs_command rxs_commandlist[];
extern struct arb_p_state arb_p_state[];
extern int command_cnt;
extern char *rexx_extension;
#endif
void ReplyRexxCommand( struct RexxMsg *rxmsg, long prim, long sec, char *res );
void FreeRexxCommand( struct RexxMsg *rxmsg );
struct RexxMsg *CreateRexxCommand( struct RexxHost *host, char *buff, BPTR fh );
struct RexxMsg *CommandToRexx( struct RexxHost *host, struct RexxMsg *rexx_command_message );
struct RexxMsg *SendRexxCommand( struct RexxHost *host, char *buff, BPTR fh );
void CloseDownARexxHost( struct RexxHost *host );
struct RexxHost *SetupARexxHost( char *basename, struct MsgPort *usrport );
struct rxs_command *FindRXCommand( char *com );
char *ExpandRXCommand( struct RexxHost *host, char *command );
char *StrDup( char *s );
void ARexxDispatch( struct RexxHost *host );
/* rxd-Strukturen dürfen nur AM ENDE um lokale Variablen erweitert werden! */
struct rxd_file
{
long rc, rc2;
struct {
long open;
long close;
} arg;
};
void rx_file( struct RexxHost *, struct rxd_file **, long, struct RexxMsg * );
struct rxd_quit
{
long rc, rc2;
};
void rx_quit( struct RexxHost *, struct rxd_quit **, long, struct RexxMsg * );
struct rxd_search
{
long rc, rc2;
struct {
char *var, *stem;
char *word;
} arg;
struct {
char *filename;
char *linenumber;
} res;
};
void rx_search( struct RexxHost *, struct rxd_search **, long, struct RexxMsg * );
#endif